using System;
using Neuparts.Ordering.ServiceInterface.DataContracts;

namespace Neuparts.Ordering.Clients
{
    public class Program
    {
        static void Main(string[] args)
        {
            using (OrderClient client = new OrderClient())
            {
                GetOrderResponse orderResponse = new GetOrderResponse();

            	client.Open();
                orderResponse = client.GetOutstandingOrders();
                Console.WriteLine("Number of outstanding orders = " + orderResponse._orders.Length);
            }
            Console.WriteLine("Press return to terminate");
            Console.ReadLine();

        }
    }
}
